"use strict";
// class Film {
//     sortId:number;
//     filmId:number;
//     filmName:string;
//     filmYear:number;
//     filmTypes:string;
//     filmDesc:string;
//     filmImg:string;
//     castNames:string;
//     castList:string;
//     typeId:number;
//     source:number;
//     count:number;
//     constructor(
//         sortId?:number,
//         filmId?:number,
//         filmName?:string,
//         filmYear?:number,
//         filmTypes?:string,
//         filmDesc?:string,
//         filmImg?:string,
//         castNames?:string,
//         castList?:string,
//         typeId?:number,
//         source?:number,
//         count?:number,
//     ){
//         this.sortId=sortId;
//         this.filmId=filmId;
//         this.filmName=filmName;
//         this.filmYear=filmYear;
//         this.filmTypes=filmTypes;
//         this.filmDesc=filmDesc;
//         this.filmImg=filmImg;
//         this.castNames=castNames;
//         this.castList=castList;
//         this.typeId=typeId;
//         this.source=source;
//         this.count=count;
//     }
// }
var Film = /** @class */ (function () {
    function Film(sortId, filmId, source, filmName, filmYear, filmTypes, filmDesc, filmImg, castNames, castList, typeId, count) {
        this.sortId = sortId;
        this.filmId = filmId;
        this.source = source;
        this.filmName = filmName;
        this.filmYear = filmYear;
        this.filmTypes = filmTypes;
        this.filmDesc = filmDesc;
        this.filmImg = filmImg;
        this.castNames = castNames;
        this.castList = castList;
        this.typeId = typeId;
        this.count = count;
    }
    return Film;
}());
var film1 = new Film();
// 支持字面量对象的属性动态匹配,包含属性校验
var film2 = {
    sortId: 1,
    filmName: "蚁人2：黄蜂女现身",
    filmImg: "https://img1.doubanio.com/view/photo/s_ratio_poster/public/p2529389608.jpg",
    source: 3.75,
    filmId: 26636712,
};
